-- GENERATED SPELL FOR [Defias Looter] --


function spell0_590(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_590', 580, 1)
end

function spell1_590(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_590', 5258, 1)
end

function Sorts_590(pUnit, Event)
local choix_sorts_590 = math.random(0, 1)
if choix_sorts_590 == 0 then
pUnit:RegisterEvent('spell0_590', 1, 1)
end
if choix_sorts_590 == 1 then
pUnit:RegisterEvent('spell1_590', 1, 1)
end
end

function mob590_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_590', math.random(1500, 3000), 1)
end

function mob590_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob590_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob590_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(590, 1, 'mob590_Action')
RegisterUnitEvent(590, 2, 'mob590_Leave')
RegisterUnitEvent(590, 3, 'mob590_Kill')
RegisterUnitEvent(590, 4, 'mob590_Die')
